package com.spider.moudle.api.realize;

import com.spider.moudle.api.Writer;
import com.sun.org.apache.commons.logging.Log;
import com.sun.org.apache.commons.logging.LogFactory;

import java.util.concurrent.atomic.AtomicLong;

/**
 * Created by Linbo Hu on 2018/1/15.
 * 一个抽象的writer
 */
public abstract class AbstractWriter implements Writer {

    /**
     * 日志处理
     */
    protected Log log = LogFactory.getLog(this.getClass() + "_" + this.hashCode());

    /**
     * 计数
     */
    protected AtomicLong atomicLong = new AtomicLong(0);


    protected static final int MAX_FLOOR = 8000*10000;


}
